import request from '@/utils/request'

export function fetchDepartmentList (parameter) {
  return request({
    url: '/boss/pms/dept/list',
    method: 'post',
    data: parameter
  })
}
export function requestAddDepartment (parameter) {
  return request({
    url: '/boss/pms/dept/add',
    method: 'post',
    data: parameter
  })
}
export function requestDeleteDepartment (parameter) {
  return request({
    url: '/boss/pms/dept/delete',
    method: 'post',
    data: parameter
  })
}
export function requestUpdateDepartment (parameter) {
  return request({
    url: '/boss/pms/dept/update',
    method: 'post',
    data: parameter
  })
}
